(function (exports) {

    var res = {
        //json
        LoginLayer_json: "res/LoginLayer.json",
        HomeLayer_json: "res/HomeLayer.json",
        LotteryLayer_json: "res/LotteryLayer.json",
        DailyLayer_json: "res/DailyLayer.json",
        FlyingChessLayer_json: "res/FlyingChessLayer.json",
        FightLayer_json: "res/FightLayer.json",
        ChooseRoleLayer_json: "res/ChooseRoleLayer.json",
        LoadingLayer_json: "res/LoadingLayer.json",
        LearnWordLayer_json: "res/LearnWordLayer.json",
        LearnWordItem_json: "res/LearnWordItem.json",
        QuestionLayer_json: "res/QuestionLayer.json",



        //png
        loading_plist: "res/image/loading/loading.plist",
        chatroom_input_back: 'res/image/common/chatroom_input_back.png',



        //music
        sound_clickBtn: 'res/music/sound_clickBtn.wav',
    };
    var heros = [
        '001',
        '004',
        '008',
        '009',
        '012',
        '013',
    ];
    var spine = [
        'login/denglu',
        'home/abj',//抽签
        'home/ck',//庙
        'home/phb',//排行榜
        'home/shengdian',//圣殿
        'home/sr',//商店
        'home/tjp',//铸造
        'home/xm',//熊猫
        'home/yx',//邮箱
        'home/tj',//花

        'guide/duihua',//引导
    ];


    for (var i = 0; i < spine.length; i++) {
        res['sp_' + spine[i] + '_json'] = 'res/image/' + spine[i] + '.json';
        res['sp_' + spine[i] + '_atlas'] = 'res/image/' + spine[i] + '.atlas';
        res['sp_' + spine[i] + '_png'] = 'res/image/' + spine[i] + '.png';
    }
    for (var i = 0; i < heros.length; i++) {
        res['hero_' + heros[i] + '_json'] = 'res/image/spine/' + heros[i] + '.json';
        res['hero_' + heros[i] + '_atlas'] = 'res/image/spine/' + heros[i] + '.atlas';
        res['hero_' + heros[i] + '_png'] = 'res/image/spine/' + heros[i] + '.png';
    }

    //四级mp3
    for (var i = 0; i < 1; i++) {
        res['music_siji_' + (i+1)] = 'res/music/siji/siji' + (i+1) + '.mp3';
    }

    var g_resources = [];
    for (var i in res)
        if (res.hasOwnProperty(i))
            g_resources.push(res[i]);


    exports.res = res;
    exports.g_resources = g_resources;

})(this);